PATH![]() |
![]() ![]() |
Displays an animation and plays the theme-appropriate sound for a window when it is shown or hidden.
pascal OSStatus TransitionWindow (
WindowPtr window,
WindowTransitionEffect effect,
WindowTransitionAction action,
const Rect *rect);
The TransitionWindow function displays an animation of a window's transition between the open and closed states, such as that displayed by the Finder. TransitionWindow uses the rectangle specified in the rect parameter for one end of the animation (the source or the destination of the zoom, depending upon whether the window is being shown or hidden, respectively) and the window's current size and position for the other end of the animation. TransitionWindow also plays sounds appropriate to the current theme for the opening and closing actions. See Creating a Window for an example of how your application can call the TransitionWindow function.
Your application may use TransitionWindow instead of the functions ShowWindow and HideWindow . Like these pre-Mac OS 8.5 Window Manager functions, TransitionWindow generates the appropriate update and active events when it shows and hides windows.